package com.sh.data.engine.domain.normalization.index.model.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author tinglan.ys
 * @description:
 * @date 2022/4/20 下午3:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class IndexDevParam {

    private Long projectId;
    private String userId;
    private Long id;

    // sql节点Id
    private Long sqlId;

    //  @ApiModelProperty(value = "开始节点id", required = true)
    private Long nodeId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Date effectiveDateStart;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Date effectiveDateEnd;

    //  @ApiModelProperty(value = "工作流Id")
    private Long taskFlowId;

    private Integer cycle;

    private Integer startTimeHour;

    private Integer startTimeMin;

    private Integer endTimeHour;

    private Integer endTimeMin;

    private String execPoint;

    //  @ApiModelProperty(
//      value = "周期依赖,0-不依赖上一调度周期 1-等待上一周期结束再运行",
//      required = true,
//      allowableValues = "0,1")
    private Integer cycleDependency;

    /**
     * 指标字段
     */
    private String indexField;

    private String tblName;

    private Long tblId;

    /**
     * 指标开发类型, 0 新建表, 1 已有表开发
     */
    private Integer devType;

    /**
     * 调度类型, 0 定时, 1 依赖调度
     */
    private Integer triggerType;
}
